package com.roc.util.constant;

import java.util.ArrayList;
import java.util.List;

public enum RejectType {
	BUSINESS_LICENCE("营业执照"),
	ID_CARD_FILE("身份证附件"),
	SETTLE_ATTACH("结算附件"),
	MCHT_PHOTO("商户照片"),
	MCHT_PROTOCOL("商户协议"),
	PLATFORM_FILL_PROBLEM("平台填写问题"),
	OTHERS_REASON("其他"),
	FREE_REASON("手动输入驳回原因");
	
	private String label;
	private String code;
	
	RejectType(String label){
		this.label = label;
		this.code = this.name();
	}
	
	public String getCode() {
		return code;
	}

	public String getLabel(){
		return this.label;
	}

	public List<String> gets(){
		List<String> list = new ArrayList<String>();
		for(RejectReason r : RejectReason.values()){
			if(r.getType() == this){
				list.add(r.getLabel());
			}
		}
		return list;
	}
}